import Vue from "vue";

export const base = {
    data() {
        return {
            projectName: "IT培优综合服务平台",
            logo: 'https://no1-system.oss-cn-beijing.aliyuncs.com/d5d637ed0aa04bc8864130e6a42a8d87.png',
            loginImage: "https://img.51miz.com/preview/element/00/01/10/57/E-1105750-CA25385A.jpg"
        }
    },
    methods: {
        splicingDomain(urlList) {
            if (!urlList) return;
            urlList = urlList.map(x => { return this.baseURL() + x})
            return urlList;
        },
        dbImages(urlList) {
            if (!urlList) return;
            urlList = urlList.map(x => { return x.replace(this.baseURL(),"")})
            return urlList;
        },
    }
}
Vue.mixin(base)